import request from '@/utils/request'
// 查询订单列表
export function getOrderList(data) {
    return request({
        url: `/web/order/list`,
        method: 'GET',
        params: data
    })
}
// 删除订单
export function deletOrder(id) {
    return request({
        url: `/web/order/delete`,
        method: 'DELETE',
        params: { id: id }
    })
}
// 更新订单状态
export function updateOrderStatus(data) {
    return request({
        url: `/web/order/update`,
        method: 'PUT',
        data
    })
}
// 查询订单详情
export function getOrderDetail(id) {
    return request({
        url: `/web/order/detail`,
        method: 'GET',
        params: { id: id }
    })
}